<?php
class Dichvuk extends AppModel {
	var $name = 'Dichvuk';
	//The Associations below have been created with all possible keys, those that are not needed can be removed
    /*
		Validation
		*/
		var $validate=array
		(
			'tendichvu'=>array('rule'=>array('minLength','1'),'message'=>'` Loi: ten dich vu khong duoc rong!'),
            'dongia1trang'=>array('rule'=>'/^[0-9]{3,}$/i','message'=>'` Loi: dong gia cua dich vu khong duoc rong va phai co it nhat la 3 so!'),
		);
	var $hasMany = array(
		'Dangkydv' => array(
			'className' => 'Dangkydv',
			'foreignKey' => 'dichvuk_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);
  }
?>